import { ref } from 'vue'
import type { FormInstance } from 'element-plus'

export interface LoginFormInt {
	userName: string
	password: string
}

export class InitData {
	loginForm: LoginFormInt = {
		userName: 'admin1',
		password: '123456'
	}

	loginFormRef = ref<FormInstance>()

	// submitForm() {
	// 	;(loginFormRef: FormInstance) => {
	// 		loginFormRef.validate((valid: boolean) => {
	// 			if (valid) {
	// 				console.log(1111)
	// 			}
	// 		})
	// 	}
	// }
}
